package com.silverbox.shopper.mapper;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.AlipayTradeRecord;

public interface AlipayTradeRecordMapper {
	int deleteByPrimaryKey(Long id);

	int insert(AlipayTradeRecord record);

	int insertSelective(AlipayTradeRecord record);

	AlipayTradeRecord selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(AlipayTradeRecord record);

	int updateByPrimaryKey(AlipayTradeRecord record);

	/**
	 * 根据订单编号查询交易记录
	 * 
	 * @param orderNum
	 * @return
	 */
	AlipayTradeRecord findAlipayTradeRecordByOrderNum(@Param("orderNum") String orderNum,
			@Param("payOrderNum") String payOrderNum);
}